package com.dc.designPattern._0_设计原则._4_dip.step2;


/**
 * Description: 依赖倒转实现Demo
 * @author: gdc
 * @date: 2021/7/23
 * @version 1.0
 */
public class Client {

    public static void main(String[] args) {
        //客户端无需改变
        Person person = new Person();

        person.receive(new Email());

        person.receive(new WeiXin());
    }
}